]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowMenu: Add context to screenshot action
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 15 Oct 2024 14:08:45 +0000 (16:08 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 15 Oct 2024 16:02:24 +0000 (16:02 +0000)
The string "Take Screenshot" is used both by the action in the
window menu and the screenshot/recording toggle in the UI.

However in some languages, it would be best to use different
strings for the two use cases.

Address this by adding context to the window menu string, so
it can be differentiated from the string in the screenshot UI.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7979
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3503>

js/ui/windowMenu.js

index af8656282290bcbb5a585fd8cfc844d8871180ad..71e8da35595a15e5a552b3e51c4679427de4870f 100644 (file)
@@ -25,7 +25,7 @@ export class WindowMenu extends PopupMenu.PopupMenu {
         let item;
 
         // Translators: entry in the window right click menu.
-        item = this.addAction(_('Take Screenshot'), async () => {
+        item = this.addAction(C_('window-menu', 'Take Screenshot'), async () => {
             try {
                 const actor = window.get_compositor_private();
                 const content = actor.paint_to_content(null);